package com.lxl.bt.net;

/**
 * @Author : xinlong.lv
 */
public class Result<T> {

    /**
     * {"status":0,"msg":"SUCCESS","data":"发送成功,验证码5分钟内有效！","total":0}
     */

    private boolean success;
    private String errorCode;
    private String msg, message;
    private T data;
    private int status;
    private int total;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public boolean isSuccess() {
        return status == 0;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMsg() {
        return msg;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
